home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2182 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: cea.fr!usenet
  2. From: Xavier Tarrago <tarrago@lcus15.saclay.cea.fr>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Smart Pointer Implementation & question
  5. Date: 16 Jan 1996 09:07:55 GMT
  6. Organization: CEA Commissariat a l'Energie Atomique, France.
  7. Message-ID: <4dfptb$5i6@news.cea.fr>
  8. References: <4dfe36$d99@grid.direct.ca>
  9. NNTP-Posting-Host: lcus15.saclay.cea.fr
  10.  
  11. ken@direct.ca (Ken Clark) wrote:
  12. >
  13. > Hi.  I have implemented a reference counting smart pointer class.  It works 
  14. > well, except that I can't get a basic behavior of normal pointers: automatic 
  15. > casting of subclass pointers.  Consider class shape and subclass circle.  I 
  16. > I think I understand why I can't do this (Stoustrup's square peg in round hole 
  17. ..
  18. > analogy).  My question is, how do I get this behavior if that is what I want? 
  19. >  
  20.  I have got a very interesting paper on that subject. I got it on the web
  21. but I can't remember where. Maybe someone here could know.
  22. "Smart Pointers : They're Smart, but They're Not Pointers"
  23. 20 pages from Daniel R. Edelson ref UCSC-CRL-92-27 (10 June 92)
  24. It is a discussion about differences between pointers & smart pointers
  25. and implementation strategies to get them as close as possible.
  26.  Hope it helps,
  27.   X.Tarrago
  28.